import request from '@/utils/request'

// 查询列表
export function listEhUserVolunteer(query) {
    return request({
        url: '/volunteer/api/uservolunteer/list',
        method: 'post',
        data: query
    })
}

// 查询详细
export function getEhUserVolunteer(ehvId) {
    return request({
        url: '/volunteer/api/uservolunteer/info/' + ehvId,
        method: 'get'
    })
}

// 新增
export function addEhUserVolunteer(data) {
    return request({
        url: '/volunteer/api/uservolunteer/save',
        method: 'post',
        data: data
    })
}

// 修改
export function updateEhUserVolunteer(data) {
    return request({
        url: '/volunteer/api/uservolunteer/save',
        method: 'post',
        data: data
    })
}

// 删除
export function delEhUserVolunteer(ehvId) {
    return request({
        url: '/volunteer/api/uservolunteer/delete/' + ehvId,
        method: 'delete'
    })
}
// 批量删除
// export function delEhUserVolunteer(data) {
//     return request({
//         url: '/wx/ehuservolunteer/deleteBatch',
//         method: 'post',
//         data: data
//     })
// }
